package com.dragon.mmochat.model.skill;

import java.io.Serializable;

import com.dragon.mmochat.model.enumType.MmochatSpecialSkillType;

//特殊技能
public class MmochatSpecialSkill implements Serializable {
	private static final long serialVersionUID = -5775769679411240236L;

	private MmochatSpecialSkillType type;
	private int level = 0; // 技能等级
	private long proficiency = 0; // 技能熟练度
	private int exp = 0; // 技能经验

	public MmochatSpecialSkillType getType() {
		return type;
	}

	public void setType(MmochatSpecialSkillType type) {
		this.type = type;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	public long getProficiency() {
		return proficiency;
	}

	public void setProficiency(long proficiency) {
		this.proficiency = proficiency;
	}
	
	public void addProficiency(long add){
		proficiency += add;
	}

	public int getExp() {
		return exp;
	}

	public void setExp(int exp) {
		this.exp = exp;
	}
	
	public void addExp(int add) {
		exp += add;
		exp = Math.max(0, exp);
	}

}
